<?php

use Drupal\shusy_anchor\Entity\ShusyAnchor;

function shusy_anchor_shusy_anchor_add_page() {
  $e = new ShusyAnchor();
  module_load_include('inc', 'shusy_anchor', 'shusy_anchor.forms');
  return drupal_get_form('shusy_anchor_shusy_anchor_entity_form', $e, 'add');
}

function shusy_anchor_shusy_anchor_view_page(ShusyAnchor $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_anchor_shusy_anchor_edit_page(ShusyAnchor $e) {
  module_load_include('inc', 'shusy_anchor', 'shusy_anchor.forms');
  return drupal_get_form('shusy_anchor_shusy_anchor_entity_form', $e, 'edit');
}

function shusy_anchor_shusy_anchor_delete_page(ShusyAnchor $e) {
  module_load_include('inc', 'shusy_anchor', 'shusy_anchor.forms');
  return drupal_get_form('shusy_anchor_shusy_anchor_delete_form', $e);
}

